﻿<%@ Page Language="VB" MasterPageFile="~/Interfaz/MasterPage.master" AutoEventWireup="false" CodeFile="frmAdminFacturaEmitir.aspx.vb" Inherits="Interfaz_frmAdminFacturaEmitir" title="Untitled Page" %>

<%@ Register Assembly="BasicFrame.WebControls.BasicDatePicker" Namespace="BasicFrame.WebControls"
    TagPrefix="BDP" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <br />
    <center>
    <table style="width: 933px; background-color: white; border-bottom: lightblue thin solid; border-right: lightblue thin solid; border-top: lightblue thin solid; border-left: lightblue thin solid;">
        <tr>
            <td style="border-right: blue thin solid; border-top: blue thin solid; border-left: blue thin solid;
                width: 400px; border-bottom: blue thin solid; height: 21px; text-align: center">
                <table style="width: 100%; border-bottom: mediumblue thin double; background-color: white">
                    <tr>
                        <td style="width: 965px; height: 21px; text-align: left">
                            <strong>FACTURA</strong></td>
                    </tr>
                </table>
                <asp:Panel ID="PanelEmitirFactura" runat="server">
                    <table style="width: 933px">
                        <tr>
                            <td style="width: 126px; text-align: left; height: 21px;">
                                <strong><span style="text-decoration: underline">
                                    <asp:Label ID="Label1" runat="server" Text="Emitir Factura"></asp:Label></span></strong></td>
                        </tr>
                    </table>
                    <center>
                        <table style="width: 933px; border-right: blue thin solid; border-top: blue thin solid; border-left: blue thin solid; border-bottom: blue thin solid;">
                            <tr>
                                <td style="width: 95px; text-align: right">
                                    <asp:Label ID="lblRazon" runat="server" Text="Razón Social:" Width="88px"></asp:Label>
                                </td>
                                <td style="text-align: left">
                                    <asp:DropDownList ID="DropCliente" runat="server" Width="216px">
                                    </asp:DropDownList>
                                    <asp:Button ID="BtnBuscar" runat="server" Text="Buscar" Width="80px" /></td>
                                <td style="width: 44px; text-align: left">
                                    <asp:Label ID="lblFono" runat="server" Text="Fono:"></asp:Label></td>
                                <td style="text-align: left">
                                    <asp:TextBox ID="txtFono" runat="server" Font-Bold="True" TabIndex="2" Width="300px" ReadOnly="True"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td style="width: 95px; height: 26px; text-align: left">
                                    Direccion :</td>
                                <td style="height: 26px; text-align: left">
                                    <asp:TextBox ID="txtDireccion" runat="server" Font-Bold="True" TabIndex="1" Width="300px" ReadOnly="True"></asp:TextBox></td>
                                <td style="width: 44px; height: 26px; text-align: left">
                                    <asp:Label ID="lblGiro" runat="server" Text="Giro:"></asp:Label></td>
                                <td style="height: 26px; text-align: left">
                                    <asp:TextBox ID="txtGiro" runat="server" Font-Bold="True" TabIndex="6" Width="300px" ReadOnly="True"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td style="width: 95px; text-align: left">
                                    <asp:Label ID="lblRut" runat="server" Text="R.U.T. :"></asp:Label></td>
                                <td style="text-align: left">
                                    <asp:TextBox ID="txtrut" runat="server" Font-Bold="True" Width="301px" ReadOnly="True"></asp:TextBox></td>
                                <td style="width: 44px; text-align: left">
                                    <asp:Label ID="lblComuna" runat="server" Text="Comuna:"></asp:Label></td>
                                <td style="text-align: left">
                                    <asp:TextBox ID="txtComuna" runat="server" Font-Bold="True" TabIndex="3" Width="300px" ReadOnly="True"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td style="width: 100%; text-align: left">
                                </td>
                                <td style="text-align: left">
                                </td>
                                <td style="width: 44px; text-align: left">
                                    Ciudad:</td>
                                <td style="text-align: left">
                                    <asp:TextBox ID="txtCiudad" runat="server" Font-Bold="True" Width="298px" ReadOnly="True"></asp:TextBox></td>
                            </tr>
                        </table>
                        </center>
                    <table style="width: 933px; border-bottom: mediumblue thin double; background-color: white">
                        <tr>
                            <td style="width: 183px; text-align: left">
                                <strong>INGRESO ITEM&nbsp;</strong></td>
                        </tr>
                    </table>
                            <table style="width: 933px; border-right: blue thin solid; border-top: blue thin solid; border-left: blue thin solid; border-bottom: blue thin solid;">
                                <tr>
                                    <td style="width: 21px; text-align: right;">
                                        <asp:Label ID="lblItem" runat="server" Text="Item:"></asp:Label></td>
                                    <td style="width: 303px; text-align: left">
                                        <asp:DropDownList ID="DropItemEF" runat="server" Width="232px">
                                        </asp:DropDownList></td>
                                    <td style="width: 1px; text-align: right;">
                                        <asp:Label ID="lblFecha" runat="server" Text="Fecha:"></asp:Label></td>
                                    <td style="width: 3px; text-align: left;">
                                        <BDP:BasicDatePicker ID="BasicFecha" runat="server" DateFormat="dd-MM-yyyy">
                                        </BDP:BasicDatePicker>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 21px; height: 18px; text-align: right;">
                                        <asp:Label ID="lblCodigo" runat="server" Text="Código:"></asp:Label></td>
                                    <td style="width: 303px; height: 18px; text-align: left">
                                        <asp:TextBox ID="txtCodigoEF" runat="server" Font-Bold="True" TabIndex="10" Width="232px"></asp:TextBox></td>
                                    <td style="width: 1px; height: 18px; text-align: right;">
                                        <asp:Label ID="lblvendedor" runat="server" Text="Vendedor:"></asp:Label></td>
                                    <td style="width: 3px; height: 18px; text-align: left;">
                                        <asp:TextBox ID="TextVendedorEF" runat="server" Font-Bold="True" Width="240px"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td style="width: 21px; text-align: right;">
                                        <asp:Label ID="lblDetalle" runat="server" Text="Detalle:"></asp:Label></td>
                                    <td style="width: 303px; text-align: left">
                                        <asp:TextBox ID="txtDetalleEF" runat="server" Font-Bold="True" TabIndex="11" Width="232px"></asp:TextBox></td>
                                    <td style="width: 1px; text-align: left;">
                                        <asp:Label ID="lblordencompra" runat="server" Text="Orden de Compra" Width="128px"></asp:Label></td>
                                    <td style="width: 3px; text-align: left;"><asp:DropDownList ID="DropOrdenCompraEF" runat="server" Width="240px">
                                    </asp:DropDownList></td>
                                </tr>
                                <tr>
                                    <td style="width: 21px; text-align: right;">
                                        <asp:Label ID="lblCantidad" runat="server" Text="Cantidad:"></asp:Label></td>
                                    <td style="width: 303px; text-align: left">
                                        <asp:TextBox ID="TxtCantidadEF" runat="server" Font-Bold="True" TabIndex="11" Width="232px"></asp:TextBox></td>
                                    <td style="width: 1px; text-align: right;">
                                        <asp:Label ID="lblgia" runat="server" Text="Guia Despacho" Width="104px"></asp:Label></td>
                                    <td style="width: 3px; text-align: left;"><asp:DropDownList ID="DropGuiaDespachoEF" runat="server" Width="240px">
                                    </asp:DropDownList></td>
                                </tr>
                                <tr>
                                    <td style="width: 21px; text-align: right;">
                                        <asp:Label ID="lblPrecioUnitario" runat="server" Text="Precio Unitario:" Width="112px"></asp:Label></td>
                                    <td style="width: 303px; text-align: left">
                                        <asp:TextBox ID="TxtPrecioUnitarioEF" runat="server" Font-Bold="True" TabIndex="11" Width="232px"></asp:TextBox></td>
                                    <td style="width: 1px; text-align: right">
                                        <asp:Label ID="lblcondicion" runat="server" Text="Condición Venta" Width="128px"></asp:Label></td>
                                    <td style="width: 3px; text-align: left;">
                                        <asp:TextBox ID="TxtCondVentaEF" runat="server" Width="240px"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td style="width: 21px">
                                    </td>
                                    <td style="width: 303px">
                                    </td>
                                    <td style="width: 1px; text-align: right">
                                        <asp:Label ID="Label2" runat="server" Text="Iva" Width="24px"></asp:Label></td>
                                    <td style="width: 3px; text-align: left;">
                                        <asp:DropDownList ID="DropIva" runat="server" Font-Bold="True" Width="80px">
                                        </asp:DropDownList></td>
                                </tr>
                            </table>
                        <asp:Label ID="LabelAvisoEF" runat="server" Width="933px"></asp:Label>
                        <center>
                        <asp:GridView ID="GridFacturaEmitida" runat="server" AutoGenerateColumns="False" AutoGenerateEditButton="True"  AutoGenerateDeleteButton ="True"
                     OnRowEditing="GridFacturaEmitida_RowEditing" OnRowUpdating="GridFacturaEmitida_RowUpdating" OnRowCancelingEdit = "GridFacturaEmitida_RowCancelingEdit" OnRowDeleting="GridFacturaEmitida_RowDeleting"
                        CellPadding="4" ForeColor="#333333" GridLines="None" Width="760px">
                        <RowStyle BackColor="#EFF3FB" />
                        <Columns>
                            <asp:BoundField DataField="ITEM" HeaderText="Item">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CODIGO" HeaderText="Codigo">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="DETALLE" HeaderText="Detalle">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CANTIDAD" HeaderText="Cantidad">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="PRECIOUNITARIO" HeaderText="Precio Unitario">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                        </Columns>
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <EditRowStyle BackColor="#2461BF" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                    </center>
                    
                                <table style="border-right: blue thin solid; border-top: blue thin solid; border-left: blue thin solid;
                                        width: 350px; border-bottom: blue thin solid; position: static">
                                    <tr>
                                        <td>
                                            <asp:Button ID="Button1" runat="server" Text="Ingresar" /></td>
                                        <td style="width: 6px">
                                            <asp:Button ID="Button2" runat="server" Text="Limpiar" /></td>
                                        <td>
                                            <asp:Button ID="Button3" runat="server" Text="Validar" /></td>
                                        <td style="width: 3px">
                                            <asp:Button ID="Visualizador" runat="server" Text="Visualizar" /></td>
                                    </tr>
                                </table>
                                
                </asp:Panel>
            </td>
        </tr>
    </table>
    </center>
</asp:Content>

